package com.jack.vipmis.vip.sign.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.springframework.format.annotation.DateTimeFormat;

import com.jack.vipmis.common.entity.BaseEntity;

/**
 * 签到表
 * 
 * @author JackLiang
 * @date 2014-6-22
 * @version 1.0
 */
@Entity
@Table(name = "vip_sign")
public class VipSign extends BaseEntity<Long> {

	private static final long	serialVersionUID	= 1L;

	@Column(name = "user_id")
	private Long	userId;

	@Column(name = "sign_count")
	private Long	signcount;		// 连续签到次数

	@Column(name = "sign_history")
	private Long	signHistory;

	@Column
	private Long	integration;	// 总积分

	@Column(name = "last_modify_time")
	@Temporal(TemporalType.TIMESTAMP)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date	lastModifyTime;

	@Column
	private String	ext;			// 预留

	@Column(name = "is_show")
	private Boolean	show;

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getSigncount() {
		return signcount;
	}

	public void setSigncount(Long signcount) {
		this.signcount = signcount;
	}

	public Long getSignHistory() {
		return signHistory;
	}

	public void setSignHistory(Long signHistory) {
		this.signHistory = signHistory;
	}

	public Long getIntegration() {
		return integration;
	}

	public void setIntegration(Long integration) {
		this.integration = integration;
	}

	public Date getLastModifyTime() {
		return lastModifyTime;
	}

	public void setLastModifyTime(Date lastModifyTime) {
		this.lastModifyTime = lastModifyTime;
	}

	public String getExt() {
		return ext;
	}

	public void setExt(String ext) {
		this.ext = ext;
	}

	public Boolean getShow() {
		return show;
	}

	public void setShow(Boolean show) {
		this.show = show;
	}

}
